import {NgModule,Directive,Input,TemplateRef} from '@angular/core';
import {CommonModule} from '@angular/common';

@Directive({
  selector: '[pTemplate]',
  host: {
  }
})

export class PrimeTemplate {

  @Input() type: string;

  @Input('pTemplate') name: string;

  constructor(public template: TemplateRef<any>) {}

  getType(): string {
    return this.name;
  }
}

@NgModule({
  imports: [CommonModule],
  exports: [PrimeTemplate],
  declarations: [PrimeTemplate]
})
export class SharedModule { }
